package com.weayer.service;

import com.weayer.dto.ResponseResult;
import com.weayer.remote.MapTrackClient;
import com.weayer.response.TrackResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @description: 轨迹管理Service
 * @author: Weayer
 **/
@Service
public class TrackService {
    @Autowired
    MapTrackClient mapTrackClient;

    /**
     * @Description: 根据tid，调用api创建轨迹，返回trid
     * @Param: [tid]
     * @return: com.weayer.dto.ResponseResult<com.weayer.response.TrackResponse>
     **/
    public ResponseResult<TrackResponse> add(String tid){
        return mapTrackClient.add(tid);
    }
}
